package com.chc.web.user.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chc.web.user.entity.User;
import com.chc.web.user.entity.UserParm;
import com.chc.web.user_role.entity.UserRole;

/**
 * Created with IntelliJ IDEA
 *
 * @Author: chc
 * @Date: 2021/12/19/21:22
 * @Description:
 */
public interface UserService extends IService<User> {
    //查询用户列表
    IPage<User> list(UserParm userParm);
    //根据用户id查询角色id
    UserRole getRoleByUserId(UserRole userRole);
    //分配角色保存
    void saveRole(UserRole userRole);
    //根据用户名查询用户信息
    User loadUser(String username);

}
